﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Airport
{
    public class Runway : Surface
    {

        private List<Node> nodes;

        /// <summary>
        /// two overloaded contstructors for runway. we can start a runway with one node, or we can just give it a list of nodes
        /// </summary>
        /// <param name="nodes or node"> </param>
        
        public Runway() { }
  
        public Runway(int id, string n, int maxW, int len, int wid, int elev)
        {
            Name = n;
            SurfaceID = id;
            MaxWeight = maxW;
            Length = len;
            Width = wid;
            Elevation = elev;
            IsOpen = true;
        }

        public void addNode(Node node)
        {
            nodes.Add(node);
        }

    }
}